<div id="agentlist">
    <div class="nav">
        <a href="#admin/store">
            <div class="nav-li">门店登记</div>
        </a>
        <div class="nav-li focus">门店列表</div>
    </div>
	<hr />

	<div class="agentlist">
		<table>
            <thead>
                <td>门店编号</td>
                <td>门店</td>
                <td>店长</td>
                <td>介绍者</td>
                <td>状态</td>
                <td>操作</td>
            </thead>
            {{#if $Cache.admin.storelist.list.length}}
            {{#each $Cache.admin.storelist.list}}
            <tr>
                <td>{{_id}}</td>
                <td>{{store_name}}</td>
                <td>{{contacts||'无'}}</td>
                <td>{{introducer}}</td>
                <td>
					{{state==0&&"未审核"||""}}
                    {{state==1&&"审核中"||""}}
                    {{state==2&&"审核通过"||""}}
                    {{state==-1&&"冻结"||""}}
                </td>
                <td>
                    <a href="#admin/store?store_id={{_id}}">查看</a>
                </td>
            </tr>
            {{/each}}
            {{#else}}
            <tr>
                <td colspan="6">
                    暂无数据
                </td>
            </tr>
            {{/if}}
        </table>
	</div>
</div>